import {
    _decorator,
} from "cc";
import { EnemyManager } from "../../Base/EnemyManager";
import { IEntity } from "../../Levels";
import { IconSkeletonStateMachine } from "./IconStateMachine";
const { ccclass } = _decorator;

@ccclass("IconSkeletonManager")
export class IconSkeletonManager extends EnemyManager {

    async init(params: IEntity) {
        this.fsm = this.addComponent(IconSkeletonStateMachine);
        await this.fsm.init();

        super.init(params);
    }

    update() {
        super.update();
    }
}
